package com.song.tools.mvc.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * Poi服务
 *
 * @author song tools
 * @since 2024-06-19
 */
public interface PoiService<HttpServletResponse, QueryRequest> {

    /**
     * 导入
     */
    default void importExcel(MultipartFile file) {
        throw new UnsupportedOperationException();
    }

    /**
     * 获取导入模版
     */
    default void importTpl(HttpServletResponse response) {
        throw new UnsupportedOperationException();
    }

    /**
     * 同步导出
     */
    default void export(HttpServletResponse response, QueryRequest request) throws IOException {
        throw new UnsupportedOperationException();
    }

    /**
     * 异步导出
     */
    default void export(QueryRequest request) throws IOException {
        throw new UnsupportedOperationException();
    }
}
